package org.example.fastJsonEnumSerializer;

import com.alibaba.fastjson2.annotation.JSONType;

@JSONType(serializer = EnumSerializer.class, deserializer = EnumDeserializer.class)
public enum OrderStatus implements BaseEnum<Integer>{
    UNPAID(0),
    PAID(1),
    SHIPPED(2),
    COMPLETED(3),
    CANCELLED(-1);

    private final Integer value;

    OrderStatus(Integer value) {
        this.value = value;
    }

    @Override
    public Integer getValue() {
        return value;
    }

}
